package com.zbkj.crmeb.merchant.admin.controller;

import com.common.PageParamRequest;
import com.crmeb.core.common.CommonResult;
import com.zbkj.crmeb.store.request.StoreOrderTransRequest;
import com.zbkj.crmeb.store.response.StoreOrderTransResponse;
import com.zbkj.crmeb.store.service.StoreOrderTransService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * 分账查询
 * @Author: wangzh
 * @Date: 2022/9/22 15:30
 */
@RestController
@RequestMapping("/api/admin/mer/store/order/trans")
@Api(tags = "分账查询")
public class MerStoreOrderTransController extends AdminBaseController {

    @Autowired
    StoreOrderTransService storeOrderTransService;

    /**
     * 功能描述: 查询分账数据
     * @Param: [pageParamRequest, transRequest, request]
     * @Return: com.crmeb.core.common.CommonResult<com.zbkj.crmeb.store.response.StoreOrderTransResponse>
     * @Author: wangzh
     * @Date: 2022/9/23 11:25
     */
    @ApiOperation(value = "分页查询分账数据")
    @GetMapping
    public CommonResult<StoreOrderTransResponse> getList(PageParamRequest pageParamRequest, StoreOrderTransRequest transRequest){
        return CommonResult.success(storeOrderTransService.getList(pageParamRequest, transRequest));
    }

}
